<?php
$q = $db->select_query('DELETE FROM session WHERE ss_user = "'.$_SESSION['usr'].'"');
// delete cookie
setcookie('check_login',true,time()-$_SESSION['lifetime']);
// destroy session
if(session_destroy()){
	header('Location: ../index.php');
}

?>